/*!
\file Visualizer.cpp
\brief Implementation of Visualizer class.
\ingroup GUI
*/

#include"Visualizer.h" 

Visualizer::Visualizer( QWidget *parent ):QTabWidget( parent ){
	setTabsClosable(true);
	connect( this, SIGNAL(tabCloseRequested(int)), this, SLOT(closeTab(int)) );
}

Visualizer::~Visualizer(){

}

void Visualizer::addAlgorithm( Algorithm *a, QString name ){
	AlgorithmVisualizer *vis = new AlgorithmVisualizer( a, this );
	addTab(vis, name);
}

void Visualizer::closeTab( int i ){
	removeTab(i);
}